<div class="expenses view">
<h2><?php  __('Gasto Extra');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tipo de Gasto'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expense['Expensetype']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Empleado'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expense['Expense']['employee_id']!=null?$expense['Employee']['first_name'].' '.$expense['Employee']['last_name']:'Ninguno'; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Monto'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			$<?php echo $expense['Expense']['value']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo date('d/m/Y', strtotime($expense['Expense']['date'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Descripción'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $expense['Expense']['description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha de Carga'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo date('d/m/Y', strtotime($expense['Expense']['created'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions specific">
	<h3><?php __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Gasto Extra', true), array('action' => 'edit', $expense['Expense']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Eliminar Gasto Extra', true), array('action' => 'delete', $expense['Expense']['id']), null, sprintf(__('Seguro que desea eliminar este Gasto Extra', true), $expense['Expense']['id'])); ?> </li>		
	</ul>
</div>
